/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author FIRE
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '/@/api/model/baseModel';

const { adminPath } = useGlobSetting();

export interface M8Rd10 extends BasicModel<M8Rd10> {
  code?: string; // 单据号
  ddate?: string; // 单据日期
  busType?: string; // 业务类型
  createByName?: string; // create_by_name
  updateByName?: string; // update_by_name
  djStatus?: string; // 单据状态
  csource?: string; // 单据来源
  m8Rds10List?: any[]; // 子表列表
}

export const m8Rd10List = (params?: M8Rd10 | any) =>
  defHttp.get<M8Rd10>({ url: adminPath + '//rd/rd10/m8Rd10/list', params });

export const m8Rd10ListData = (params?: M8Rd10 | any) =>
  defHttp.post<Page<M8Rd10>>({ url: adminPath + '/rd/rd10/m8Rd10/listData', params });

export const m8Rds10ListData = (params?: M8Rd10 | any) =>
  defHttp.post<Page<M8Rd10>>({ url: adminPath + '/rd/rd10/m8Rd10/m8Rds10ListData', params });

export const m8Rd10Form = (params?: M8Rd10 | any) =>
  defHttp.get<M8Rd10>({ url: adminPath + '/rd/rd10/m8Rd10/form', params });

export const m8Rd10Save = (params?: any, data?: M8Rd10 | any) =>
  defHttp.postJson<M8Rd10>({ url: adminPath + '/rd/rd10/m8Rd10/save', params, data });

export const m8Rd10Delete = (params?: M8Rd10 | any) =>
  defHttp.get<M8Rd10>({ url: adminPath + '/rd/rd10/m8Rd10/delete', params });
